"""
Convenience script for processing registration groups via the service layer.
"""

from __future__ import annotations

from config.settings import settings
from services.registration_manager import RegistrationManager


def process_groups(metadata_path=None, output_dir=None):
    manager = RegistrationManager()
    return manager.process_groups(metadata_path=metadata_path, output_dir=output_dir)


if __name__ == "__main__":  # pragma: no cover - script entry
    process_groups(metadata_path=settings.paths.metadata_file, output_dir=settings.paths.registered)
